home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 May: Tool Chest / Developer CD Series May 1996 (Tool Chest) (Apple Computer) (1996).iso / Sample Code / AppsToGo / •AppsToGo Reference / •AppsToGo Reference.rsrc / WFMT_580_a2A2 < prev    next >
Unknown  |  1994-09-22  |  1.5 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert Jesper Olsen Module (music/jesperOlsen) magic Supported
1% dexvert TTComp Archive (archive/ttcomp) fallback Supported
100% file TTComp archive data, binary, 2K dictionary default (weak)
99% file data default
66% TrID TTComp archive compressed (bin-2K) default (weak)
33% TrID Adobe PhotoShop Brush default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 05 00 01 00 00 00 1a | 00 00 00 00 00 00 00 1a |........|........|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 05 00 05 00 00 |........|........|
|00000030| 00 2c 00 00 00 00 00 00 | 00 2c 61 32 41 32 00 00 |.,......|.,a2A2..|
|00000040| 4e 16 00 00 20 19 00 00 | 00 00 00 00 00 00 00 00 |N... ...|........|
|00000050| 00 00 12 50 6f 73 69 74 | 69 6f 6e 52 65 63 74 49 |...Posit|ionRectI|
|00000060| 6e 52 65 63 74 00 00 06 | 00 00 00 00 00 b5 00 00 |nRect...|........|
|00000070| 00 00 00 00 00 b5 00 00 | 00 14 03 c1 00 28 05 7e |........|.....(.~|
|00000080| 00 ff 00 00 00 00 00 00 | 0f a8 00 00 00 00 4e 1c |........|......N.|
|00000090| 00 00 00 09 00 00 00 04 | 00 04 ff fc ff fa 00 04 |........|........|
|000000a0| 00 04 ff fc ff fc 00 00 | 00 00 00 00 00 00 83 00 |........|........|
|000000b0| 0b 40 10 6b 53 63 72 65 | 65 6e 41 50 49 2f 31 39 |.@.kScre|enAPI/19|
|000000c0| 39 39 36 00 06 47 65 6e | 65 76 61 00 00 5b 76 6f |996..Gen|eva..[vo|
|000000d0| 69 64 20 50 6f 73 69 74 | 69 6f 6e 52 65 63 74 49 |id Posit|ionRectI|
|000000e0| 6e 52 65 63 74 28 52 65 | 63 74 20 6f 75 74 65 72 |nRect(Re|ct outer|
|000000f0| 52 65 63 74 2c 20 52 65 | 63 74 20 2a 69 6e 6e 65 |Rect, Re|ct *inne|
|00000100| 72 52 65 63 74 2c 20 46 | 69 78 65 64 20 68 6f 72 |rRect, F|ixed hor|
|00000110| 7a 52 61 74 69 6f 2c 20 | 46 69 78 65 64 20 76 65 |zRatio, |Fixed ve|
|00000120| 72 74 52 61 74 69 6f 29 | 3b 00 00 00 06 00 00 00 |rtRatio)|;.......|
|00000130| 00 00 92 00 00 00 00 00 | 00 00 92 00 00 00 00 03 |........|........|
|00000140| c1 00 14 05 7e 00 ff 00 | 00 00 00 00 00 0f a8 00 |....~...|........|
|00000150| 00 00 00 4e 1d 00 00 00 | 09 00 00 00 04 00 04 ff |...N....|........|
|00000160| fc ff fa 00 04 00 04 ff | fc ff fc 00 00 00 00 00 |........|........|
|00000170| 00 00 00 83 00 0b 40 14 | 6b 53 63 72 65 65 6e 4f |......@.|kScreenO|
|00000180| 6e 65 4c 69 6e 65 2f 31 | 39 39 39 37 00 06 47 65 |neLine/1|9997..Ge|
|00000190| 6e 65 76 61 00 00 34 50 | 6f 73 69 74 69 6f 6e 73 |neva..4P|ositions|
|000001a0| 20 6f 6e 65 20 72 65 63 | 74 20 77 69 74 68 69 6e | one rec|t within|
|000001b0| 20 61 6e 6f 74 68 65 72 | 2c 20 62 61 73 65 64 20 | another|, based |
|000001c0| 6f 6e 20 61 20 72 61 74 | 69 6f 2e 00 00 00 06 00 |on a rat|io......|
|000001d0| 00 00 00 00 44 00 00 00 | 00 00 00 00 44 00 00 00 |....D...|....D...|
|000001e0| 00 02 6b 04 40 02 6c 01 | 00 00 00 00 00 00 01 0f |..k.@.l.|........|
|000001f0| f1 00 00 00 00 00 00 00 | 00 00 0c 00 00 00 00 00 |........|........|
|00000200| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000210| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000220| 00 00 06 00 00 00 00 00 | 6b 00 00 00 00 00 00 00 |........|k.......|
|00000230| 6b 00 00 00 00 02 6b 02 | 28 03 c1 00 ff 00 00 00 |k.....k.|(.......|
|00000240| 00 00 00 0f a8 00 00 00 | 00 4e 16 00 00 00 09 00 |........|.N......|
|00000250| 00 00 04 00 04 ff fc ff | fa 00 04 00 04 ff fc ff |........|........|
|00000260| fc 00 00 00 00 00 00 00 | 00 83 00 0b 40 0b 6c 69 |........|....@.li|
|00000270| 6e 6b 73 2f 31 39 39 39 | 30 00 06 4d 6f 6e 61 63 |nks/1999|0..Monac|
|00000280| 6f 00 00 00 00 16 00 01 | 00 00 00 00 00 10 00 0c |o.......|........|
|00000290| 00 01 00 00 00 00 00 00 | 00 00 00 00 00 06 00 00 |........|........|
|000002a0| 00 00 03 58 00 00 00 00 | 00 00 03 58 00 00 00 00 |...X....|...X....|
|000002b0| 00 00 75 30 02 6b 01 ff | 00 00 00 00 00 00 0f a8 |..u0.k..|........|
|000002c0| 00 00 00 00 4e 1f 00 00 | 00 09 00 00 00 04 00 04 |....N...|........|
|000002d0| ff fc ff fa 00 04 00 04 | ff fc ff fc 00 00 00 00 |........|........|
|000002e0| 00 00 00 00 83 00 0b 40 | 0a 62 6f 64 79 2f 31 39 |.......@|.body/19|
|000002f0| 39 39 39 00 06 4d 6f 6e | 61 63 6f 00 02 ee 76 6f |999..Mon|aco...vo|
|00000300| 69 64 20 50 6f 73 69 74 | 69 6f 6e 52 65 63 74 49 |id Posit|ionRectI|
|00000310| 6e 52 65 63 74 28 52 65 | 63 74 20 6f 75 74 65 72 |nRect(Re|ct outer|
|00000320| 52 65 63 74 2c 20 52 65 | 63 74 20 2a 69 6e 6e 65 |Rect, Re|ct *inne|
|00000330| 72 52 65 63 74 2c 20 46 | 69 78 65 64 20 68 6f 72 |rRect, F|ixed hor|
|00000340| 7a 52 61 74 69 6f 2c 20 | 46 69 78 65 64 20 76 65 |zRatio, |Fixed ve|
|00000350| 72 74 52 61 74 69 6f 29 | 3b 0d 0d 20 20 20 20 46 |rtRatio)|;.. F|
|00000360| 69 6c 65 3a 20 55 74 69 | 6c 69 74 69 65 73 2e 68 |ile: Uti|lities.h|
|00000370| 0d 0d 49 4e 50 55 54 3a | 20 20 6f 75 74 65 72 52 |..INPUT:| outerR|
|00000380| 65 63 74 20 20 20 20 20 | 20 20 52 65 63 74 20 74 |ect | Rect t|
|00000390| 6f 20 70 6f 73 69 74 69 | 6f 6e 20 77 69 74 68 69 |o positi|on withi|
|000003a0| 6e 2e 0d 20 20 20 20 20 | 20 20 20 68 6f 72 7a 52 |n.. | horzR|
|000003b0| 61 74 69 6f 20 20 20 20 | 20 20 20 52 61 74 69 6f |atio | Ratio|
|000003c0| 20 66 6f 72 20 68 6f 72 | 69 7a 6f 6e 74 61 6c 20 | for hor|izontal |
|000003d0| 70 6f 73 69 74 69 6f 6e | 69 6e 67 2e 0d 20 20 20 |position|ing.. |
|000003e0| 20 20 20 20 20 76 65 72 | 74 52 61 74 69 6f 20 20 | ver|tRatio |
|000003f0| 20 20 20 20 20 52 61 74 | 69 6f 20 66 6f 72 20 76 | Rat|io for v|
|00000400| 65 72 74 69 63 61 6c 20 | 70 6f 73 69 74 69 6f 6e |ertical |position|
|00000410| 69 6e 67 2e 0d 49 4e 2f | 4f 55 54 3a 20 69 6e 6e |ing..IN/|OUT: inn|
|00000420| 65 72 52 65 63 74 20 20 | 20 20 20 20 20 49 4e 50 |erRect | INP|
|00000430| 55 54 3a 20 20 52 65 63 | 74 20 74 6f 20 70 6f 73 |UT: Rec|t to pos|
|00000440| 69 74 69 6f 6e 2e 0d 20 | 20 20 20 20 20 20 20 20 |ition.. | |
|00000450| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 4f | | O|
|00000460| 55 54 50 55 54 3a 20 50 | 6f 73 69 74 69 6f 6e 65 |UTPUT: P|ositione|
|00000470| 64 20 72 65 63 74 2e 0d | 0d 47 69 76 65 6e 20 74 |d rect..|.Given t|
|00000480| 77 6f 20 72 65 63 74 61 | 6e 67 6c 65 73 2c 20 74 |wo recta|ngles, t|
|00000490| 68 69 73 20 72 6f 75 74 | 69 6e 65 20 70 6f 73 69 |his rout|ine posi|
|000004a0| 74 69 6f 6e 73 20 74 68 | 65 20 73 65 63 6f 6e 64 |tions th|e second|
|000004b0| 20 77 69 74 68 69 6e 20 | 74 68 65 20 66 69 72 73 | within |the firs|
|000004c0| 74 20 6f 6e 65 20 73 6f | 20 74 68 61 74 20 74 68 |t one so| that th|
|000004d0| 65 20 69 74 0d 6d 61 69 | 6e 74 61 69 6e 73 20 74 |e it.mai|ntains t|
|000004e0| 68 65 20 73 70 61 63 69 | 6e 67 20 73 70 65 63 69 |he spaci|ng speci|
|000004f0| 66 69 65 64 20 74 68 65 | 20 74 68 65 20 68 6f 72 |fied the| the hor|
|00000500| 7a 52 61 74 69 6f 20 61 | 6e 64 20 76 65 72 74 52 |zRatio a|nd vertR|
|00000510| 61 74 69 6f 20 70 61 72 | 61 6d 65 74 65 72 73 2e |atio par|ameters.|
|00000520| 20 49 6e 20 6f 74 68 65 | 72 20 77 6f 72 64 73 2c | In othe|r words,|
|00000530| 20 74 6f 0d 63 65 6e 74 | 65 72 20 61 6e 20 69 6e | to.cent|er an in|
|00000540| 6e 65 72 20 72 65 63 74 | 61 6e 67 6c 65 20 68 6f |ner rect|angle ho|
|00000550| 69 7a 6f 6e 74 61 6c 6c | 79 2c 20 62 75 74 20 68 |izontall|y, but h|
|00000560| 61 76 65 20 69 74 73 20 | 63 65 6e 74 65 72 20 62 |ave its |center b|
|00000570| 65 20 31 2f 33 20 66 72 | 6f 6d 20 74 68 65 20 74 |e 1/3 fr|om the t|
|00000580| 6f 70 20 6f 66 20 74 68 | 65 20 6f 75 74 65 72 0d |op of th|e outer.|
|00000590| 72 65 63 74 61 6e 67 6c | 65 2c 20 63 61 6c 6c 20 |rectangl|e, call |
|000005a0| 74 68 69 73 20 72 6f 75 | 74 69 6e 65 20 77 69 74 |this rou|tine wit|
|000005b0| 68 20 68 6f 72 7a 52 61 | 74 69 6f 20 3d 20 46 69 |h horzRa|tio = Fi|
|000005c0| 78 52 61 74 69 6f 28 31 | 2c 20 32 29 2c 20 76 65 |xRatio(1|, 2), ve|
|000005d0| 72 74 52 61 74 69 6f 20 | 3d 20 46 69 78 52 61 74 |rtRatio |= FixRat|
|000005e0| 69 6f 28 31 2c 20 33 29 | 2e 0d 0d 0d 00 16 00 01 |io(1, 3)|........|
|000005f0| 00 00 00 00 00 0b 00 09 | 00 04 00 00 00 09 00 00 |........|........|
|00000600| 00 00 00 00 | |.... | |
+--------+-------------------------+-------------------------+--------+--------+